<!--{include(pe_tpl('header_dialog.html'));}-->
<!--{if($info['quan_type'] == 'offline999'):}-->
<div class="search">
	<a href="javascript:;" onclick="quanlog_add();" id="fabu">添加券码</a>
	<a href="admin.php?mod=quan&act=mylog&id={$quan_id}&excel=1" id="fabu">导出券码</a>
	<div class="clear"></div>
</div>
<!--{endif;}-->
<form method="post" id="form">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
<tr>
	<th class="bgtt" width="150">领取日期</th>
	<th class="bgtt" width="100">面值</th>
	<th class="bgtt" width="100">使用条件</th>
	<th class="bgtt" width="130">领取用户</th>
	<th class="bgtt" width="150">使用日期</th>
	<th class="bgtt" width="70">状态</th>
</tr>
<!--{foreach($info_list as $v):}-->
<tr>
	<td>{$v['quanlog_atime']?pe_date_color(pe_date($v['quanlog_atime'])):'-'}</td>
	<td>{$v['quan_money']}元</td>
	<td>满{$v['quan_limit']}元</td>
	<td>{$v['user_name']?$v['user_name']:'-'}</td>
	<td>{$v['quanlog_utime']?pe_date_color(pe_date($v['quanlog_utime'])):'-'}</td>
	<td>	
		<!--{if($v['quanlog_state']==0):}-->
		<span class="corg">未使用</span>				
		<!--{elseif($v['quanlog_state']==1):}-->
		<span class="cgreen">已使用</span>					
		<!--{elseif($v['quanlog_state']==2):}-->
		<del class="c999">已过期</del>
		<!--{endif;}-->
	</td>
</tr>
<!--{endforeach;}-->
</table>
</form>	
<div class="right_bottom">
	<span class="fr fenye">{$db->page->html}</span>
	<div class="clear"></div>
</div>
<script type="text/javascript">
$(function(){
	if ($(".right_bottom").height() == 0) {
		$(".right_bottom").remove();
	}
})
function quanlog_add() {
	window.parent.layer.open({
		type: 2,
		title: '添加券码',
		area: ['500px', '320px'],
		fixed: false, //不固定
		shadeClose: true,
		shade: 0.5,
		content: 'admin.php?mod=quan&act=fafang&id={$quan_id}'
	});
}
</script>
<style type="text/css">
body{margin-bottom:48px;}
</style>
<!--{include(pe_tpl('footer_dialog.html'));}-->